<template>
<!--  :accept="['.png','.pdf','.doc']"-->
  <BasicUpload :maxSize="20" :maxNumber="10" @change="handleChange" resultField="data.data"  :api="local_uploadApi" :value="dataList"/>
</template>

<script lang="ts" setup>
import { BasicUpload } from '@/components/Upload';
import { uploadApi } from '@/api/sys/upload';
import {useMessage} from "@/hooks/web/useMessage";
import {ref} from "vue";
const { createMessage } = useMessage();
const dataList=ref([]);
const local_uploadApi=uploadApi;
function handleChange(list){
  createMessage.info(`已上传文件${JSON.stringify(list)}`);
}
</script>

<style scoped>

</style>
